package br.poli.ecomp.tcc.stimultimidia.model
{
	
	import br.poli.ecomp.tcc.stimultimidia.business.FachadaDelegate;
	import br.poli.ecomp.tcc.stimultimidia.model.vo.TelaVO;
	import br.poli.ecomp.tcc.stimultimidia.model.vo.UsuarioVO;
	
	import flash.events.Event;
	 
	
	import org.puremvc.as3.interfaces.IProxy;
	import org.puremvc.as3.patterns.proxy.Proxy;
 
	public class FachadaRemoteProxy extends Proxy implements IProxy 
	{
	
		public static const NAME:String = "FachadaRemoteProxy";



		public function FachadaRemoteProxy(proxyName:String=null, data:Object=null)
		{
			super(NAME, data );
		}

		private function on__constructResult(pResultEvt:Event):void
		{
		//	var result:Object=pResultEvt.result as Object ;
			//sendNotification();
		}

		public function logarUsuario(user:UsuarioVO):void
		{
			/*var delegate:FachadaDelegate = new FachadaDelegate(new Responder(onLogarUsuarioResult, onFault));
			delegate.logarUsuario(user);*/
		}

		private function onLogarUsuarioResult(pResultEvt:Event):void
		{
		//	var result:Object=pResultEvt.result as Object ;
			//sendNotification();
		}

		public function addUsuario(user:UsuarioVO):void
		{
			/*var delegate:FachadaDelegate = new FachadaDelegate(new Responder(onAddUsuarioResult, onFault));
			delegate.addUsuario(user);*/
		}

		private function onAddUsuarioResult(pResultEvt:Event):void
		{
		//	var result:Object=pResultEvt.result as Object ;
			//sendNotification();
		}

		public function editUsuario(object:UsuarioVO):void
		{
			/*var delegate:FachadaDelegate = new FachadaDelegate(new Responder(onEditUsuarioResult, onFault));
			delegate.editUsuario(object);*/
		}

		private function onEditUsuarioResult(pResultEvt:Event):void
		{
		//	var result:Object=pResultEvt.result as Object ;
			//sendNotification();
		}

		public function getTelasByUser(user:UsuarioVO):void
		{
			/*var delegate:FachadaDelegate = new FachadaDelegate(new Responder(onGetTelasByUserResult, onFault));
			delegate.getTelasByUser(user);*/
		}

		private function onGetTelasByUserResult(pResultEvt:Event):void
		{
			//var result:Object=pResultEvt.result as Object ;
			//sendNotification();
		}

		public function gravarRegistroTela(user:UsuarioVO, tela:TelaVO):void
		{
			/*var delegate:FachadaDelegate = new FachadaDelegate(new Responder(onGravarRegistroTelaResult, onFault));
			delegate.gravarRegistroTela(user, tela);*/
		}

		private function onGravarRegistroTelaResult(pResultEvt:Event):void
		{
			//var result:Object=pResultEvt.result as Object ;
			//sendNotification();
		}

		public function getProximaTela(user:UsuarioVO):void
		{
			/*var delegate:FachadaDelegate = new FachadaDelegate(new Responder(onGetProximaTelaResult, onFault));
			delegate.getProximaTela(user);*/
		}

		private function onGetProximaTelaResult(pResultEvt:Event):void
		{
			//var result:Object=pResultEvt.result as Object ;
			//sendNotification();
		}

		private function onFault(pFaultEvt:Event):void
		{
		//	Alert.show(pFaultEvt.fault.faultString, 'Error');
		}

	
		
	}
}